﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using PloobsEngine.Physics.XJigLib;

namespace PloobsEngine.Behaviors
{
    public class CharacterJumpAction :  IAction
    {
        CharacterObject.Character body;
        private float jumpForce = 400.0f;
        
        public CharacterJumpAction(JigLibXObject obj)
        {
            body = obj.Body_ as CharacterObject.Character;      
        }
        public CharacterJumpAction(JigLibXObject obj, float jumpForce)
        {
            this.jumpForce = jumpForce;
            body = obj.Body_ as CharacterObject.Character;
        }
        
        #region IAction Members            

        public string Action()
        {
            body.DoJump();
            return JUMPING;
        }

        public static readonly String JUMPING = "Jump";
        #endregion


    }
}
